<?php


namespace Modules\System\Http\ViewComposer;


use Illuminate\View\View;

class TemplateComposer
{
    public function compose(View $view)
    {
        if ($route = request()->route()) {
            $view->with([
                'page' => $route->parameter('page')
            ]);
        }
    }
}
